import myRequest from '..'
import type { IAccount } from '@/views/Login/types'

// 登录
export function accountLogin(account: IAccount) {
  return myRequest.post({
    url: 'auth/login',
    data: account
  })
}

// 退出
export function accountLogout() {
  return myRequest.post({
    url: 'auth/logout'
  })
}
